package com.nanyang.tms.dao.ticket;

import com.nanyang.tms.domain.ticket.TicketTypeDO;
import com.nanyang.tms.domain.ticket.TicketTypeQuery;
import com.nanyang.tms.domain.ticket.TicketTypeVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>Description:(单号种类)</p>
 *
 * @author lv
 * @date 2022年11月12日 下午11:03:57
 * @Copyright Copyright (c) 2020 www.nanyang.cn Inc. All rights reserved.
 */
@Mapper
public interface TicketTypeDao {
    /**
     * <p>deleteByPrimaryKey</p>
     * <p>Description:(根据主键删除)</p>
     *
     * @param id
     * @return int
     */
    int deleteByPrimaryKey(Long id);

    /**
     * <p>insert</p>
     * <p>Description:(新增（所有列）)</p>
     *
     * @param record
     * @return int
     */
    int insert(TicketTypeDO record);


    /**
     * <p>Description:(根据主键查询)</p>
     *
     * @param id
     * @return TicketTypeDO
     */
    TicketTypeDO selectByPrimaryKey(Long id);

    /**
     * <p>Description:(修改(选择的列))</p>
     *
     * @param record
     * @return int
     */
    int update(TicketTypeDO record);

    /**
     * 总数
     * @param ticketTypeQuery
     * @return
     */
    int countTicket(TicketTypeQuery ticketTypeQuery);

    /**
     * 列表
     * @param ticketTypeQuery
     * @return
     */
    List<TicketTypeVO> listTicket(TicketTypeQuery ticketTypeQuery);

    /**
     * 详情
     * @param ticketTypeCode
     * @return
     */
    TicketTypeVO selectByCode(String ticketTypeCode);

    /**
     * 名称重复
     * @param ticketTypeQuery
     * @return
     */
    int queryVerifyTicketTypeName(TicketTypeQuery ticketTypeQuery);

    int deleteByCode(String ticketTypeCode);
}